import nuke

path = 'D:/pythonOUT/Nuke_Plugin/pack/test/'
print(nuke.getFileNameList(path))

data = {}
sn = nuke.allNodes()
for n in sn:
    print
    n.Class()
    name = n.name()
    if n.Class() in ['Camera2', 'ReadGeo2', 'Read', 'Write']:  # 相机节点
        file = n['file'].value()
        data[name] = [n.Class(), file]

    elif n.Class() == 'Vectorfield':
        file = n['vfield_file'].value()
        data[name] = [n.Class(), file]

print('data:', data)